﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class ucLogin : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void btnLogin_Click(object sender, EventArgs e)
    {
        LoginBL obj = new LoginBL(txtUsername.Text, txtPassword.Text);
        if (obj.CheckUser())
        {
            Session["User"] = obj;
        }
    }
    protected void lnkLogout_Click(object sender, EventArgs e)
    {
        Session["User"] = null;
    }
}